查询语音信息

获取在线语音交互数据。

请求地址

GET {{url}}/robot-onlineVoiceData/query

请求参数

参数名称 参数类型 默认值 是否必须 参数描述
serialNum String 序列号
deptId String 部门id
deptShowType Integer 1 部门类型:0-仅当前部门;1-包含子部门
startDate String 开始日期(格式:yyyy-MM-dd)
endDate String 结束日期(格式:yyyy-MM-dd)
keyWord String 关键字
page Integer 1 当前页数(取值范围:大于零的整数)
limit Integer 10 分页大小(取值范围:大于零的整数; 最大值:100)

响应参数

返回的JSON数据

参数名称 参数类型 参数描述
code Integer 状态码
message String 信息
data Object 数据对象

data的结构

参数名称 参数类型 参数描述
total Long 总记录数
size Long 每页条数(取值范围:大于零的整数; 最大值:100)
current Long 当前页码(取值范围:大于零的整数)
pages Long 总页码(取值范围:大于零的整数)
records List 在线语音信息列表

records的结构

参数名称 参数类型 参数描述
askContent String 用户问
commandType String 指令类型:1- 在线;2- 离线
createDate String 对话时间
deptId Long 部门id
deptName String 部门名称
enterpriseName String 企业名称
intent String 意图
nlpPlatform String nlp平台
responseContent String 回答
rewrite String 重写
score String 置信度(取值范围:大于等于零,小于等于100)
serialNum String 序列号
words String 槽位

请求示例

GET  {{url}}/robot-onlineVoiceData/query?deptIds=1000

响应示例

{
    "code": 200,
    "message": "success",
    "data": {
        "total": 2200,
        "size": 10,
        "pages": 220,
        "current": 1,
        "records": [
            {
                "serialNum": "Cruzr.01.b0f1ecccb123",
                "deptId": 1000,
                "deptName": "TEST",
                "enterpriseName": "TEST",
                "askContent": "今天天气",
                "rewrite": "",
                "responseContent": "郑州小雨,预计0℃~4℃,现在0℃。",
                "intent": "/intent/weather",
                "score": "90.0",
                "words": "{}",
                "createDate": "2019-12-25 12:23:05",
                "commandType": "1",
                "nlpPlatform": "TEST"
            }
        ]
    }
}